package com.combining.e_composite.impl;

import com.combining.e_composite.face.AbstractDuckFactory;
import com.combining.e_composite.face.Quackable;

public class CountingDuckFactory extends AbstractDuckFactory {

	public Quackable createMallardDuck() {
		return new QuackCounter(new MallardDuck());
	}

	public Quackable createRedheadDuck() {
		return new QuackCounter(new RedheadDuck());
	}

	public Quackable createDuckCall() {
		return new QuackCounter(new DuckCall());
	}

	public Quackable createRubberDuck() {
		return new QuackCounter(new RubberDuck());
	}
}
